//
//  ExamQuestionReadCollectionViewCell.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/19.
//

#import "JPCollectionViewCell.h"
#import "ExamQuestionModel.h"
#import "ExamQuestionOptionsModel.h"

NS_ASSUME_NONNULL_BEGIN

@class ExamQuestionReadCollectionViewCell;

@protocol ExamQuestionReadCollectionViewCellDelegate <NSObject>

@optional

-(void)answerReadQuestionTap:(ExamQuestionReadCollectionViewCell*)cell andQuestionModel:(ExamQuestionModel*)model andOptionsModel:(ExamQuestionOptionsModel*)optionsModel;

-(void)checkReadQuestionTap:(ExamQuestionReadCollectionViewCell*)cell andQuestionModel:(ExamQuestionModel*)model;

-(void)readQuestionScroll:(ExamQuestionReadCollectionViewCell*)cell andQuestionModel:(ExamQuestionModel*)model andIsNext:(NSInteger)isNext;


@end


@interface ExamQuestionReadCollectionViewCell : JPCollectionViewCell

@property (nonatomic, weak) id<ExamQuestionReadCollectionViewCellDelegate>delegate;
@property(nonatomic,assign)NSInteger testType;//0 专项测试 1考试试卷 2试卷解析 3专项解析 4收藏夹
@property(nonatomic,assign)NSInteger item;
@property(nonatomic,strong)ExamQuestionModel *model;
@property(nonatomic,assign)CGFloat currentAvailableWidth;
@property(nonatomic,assign)CGFloat currentAvailableHeight;

-(void)createQuestionUI;
-(void)refreshCheck;
-(void)scrollToNext:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
